-- buy_goods
-- created by panyl
-- 商店购买

return {
    doAction = function(action)
        local pos = action.pos;
        local goodsIndex = action.data;
        local grid = DungeonM.getGridByPos(pos);
        local shopType = grid.shopType .. pos;
        return DungeonShopM.buyGoods(pos, shopType, goodsIndex);
    end,
};
